
if(CONFIG_C920_SOURCE)
    list(APPEND C920_SRCS source/c920_opt/capability.c)
    list(APPEND C920_SRCS source/c920_opt/reorder.c)
    list(APPEND C920_SRCS source/c920_opt/setup.c)
    list(APPEND C920_SRCS source/c920_opt/utils.c)
    list(APPEND C920_SRCS source/c920_opt/yolov5.c)
    list(APPEND C920_SRCS source/c920_opt/yolox.c)
    list(APPEND C920_SRCS source/c920_opt/shl_c920_f32_to_i8.S)
    list(APPEND C920_SRCS source/c920_opt/shl_c920_f32_to_u8.S)
    list(APPEND C920_SRCS source/c920_opt/shl_c920_i8_to_f32.S)
    list(APPEND C920_SRCS source/c920_opt/shl_c920_u8_to_f32.S)
endif()

if(CONFIG_C920_CONVOLUTION_FP32)
    list(APPEND C920_SRCS source/c920_opt/fp32/convolution_1x1_fp32_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp32/convolution_3x3_fp32_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp32/convolution_gemm_fp32_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp32/convolution.c)
    list(APPEND C920_SRCS source/c920_opt/fp32/gemm_fp32_packn.c)
endif()

if(CONFIG_C920_CONVOLUTION_FP16)
    list(APPEND C920_SRCS source/c920_opt/fp16/convolution_1x1_fp16_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp16/convolution_3x3_fp16_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp16/convolution_gemm_fp16_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp16/convolution.c)
    list(APPEND C920_SRCS source/c920_opt/fp16/gemm_fp16_packn.c)
endif()

if(CONFIG_C920_GEMM_FP32)
    list(APPEND C920_SRCS source/c920_opt/fp32/gemm_fp32_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp32/gemm_fp32_block.c)
endif()

if(CONFIG_C920_GEMM_FP16)
    list(APPEND C920_SRCS source/c920_opt/fp16/gemm_fp16_packn.c)
    list(APPEND C920_SRCS source/c920_opt/fp16/gemm_fp16_block.c)
endif()

if(CONFIG_C920_MATMUL_FP32)
    list(APPEND C920_SRCS source/c920_opt/fp32/matmul_fp32.c)
endif()

if(CONFIG_C920_MATMUL_FP16)
    list(APPEND C920_SRCS source/c920_opt/fp16/matmul_fp16.c)
endif()
